package com.example.demo1;

public class DemoTest {

    public static void main(String[] args) {
        //装饰者模式 是为了
        ConcreteComponent component = new ConcreteComponent();
        ConcreteDecorator decorator = new ConcreteDecorator(component);
        decorator.operation();

    }
}
